package com.haojiang.mh.service.entity

class ReportBean {
    var left: SideBean? = null
    var right: SideBean? = null
}

class SideBean {
    var rem: PercentBean? = null
    var deep: PercentBean? = null
    var awake: PercentBean? = null
    var light: PercentBean? = null
    var score = -1
    var sub_report: List<SubReportBean>? = null
    var report_date = ""
    var summary_chart: SummaryBean? = null
    var body_move_times = -1
    var sleep_time_hour = -1
    var sleep_time_minute = -1
    var body_revolve_times = -1
    override fun toString(): String {
        return "SideBean(rem=$rem, deep=$deep, awake=$awake, light=$light, score=$score, sub_report=$sub_report, report_date='$report_date', summary_chart=$summary_chart, body_move_times=$body_move_times, sleep_time_hour=$sleep_time_hour, sleep_time_minute=$sleep_time_minute, body_revolve_times=$body_revolve_times)"
    }


}

class PercentBean {
    var value = -1
    var percentage = -1
}

class SummaryBean {
    var rem = -1
    var deep = -1
    var away_bed = -1
    var asleep_time = -1
    var snore_count = -1
    var sleep_during_time = -1
}

class SubReportBean {
    var rem: PercentBean? = null
    var deep: PercentBean? = null
    var awake: PercentBean? = null
    var light: PercentBean? = null
    var score = -1
    var snore: List<TimeStampBean>? = null
    var breath: TimeBean? = null
    var body_move: List<TimeStampBean>? = null
    var breath_avg = -1
    var heart_beat: TimeBean? = null
    var sleep_data: List<StatusBean>? = null
    var snore_count: List<TimeStampBean>? = null
    var body_revolve: List<TimeStampBean>? = null
    var wake_up_time = -1L
    var go_to_bed_time = -1L
    var heart_beat_avg = -1
    var sleep_time_hour = -1
    var sleep_time_minute = -1
}

class TimeBean {
    var num: List<Int>? = null
    var time: List<Int>? = null

    fun isNull(): Boolean {
        return num.isNullOrEmpty() || time.isNullOrEmpty()
    }
}

class TimeStampBean {
    var time = -1L
    var value = -1
}

class StatusBean {
    var start = -1L
    var end = -1L
    var status = 0
}